package com.ttx.gateway.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.config.GatewayProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/config")
public class ConfigController {
    @Autowired
    GatewayProperties gatewayProperties;

    @RequestMapping("/get")
    public GatewayProperties get(){
        return gatewayProperties;
    }
}
